import { post } from '../../../util/request.js'

export const getInviteCodeApi = p => {
  return post('/user/generateInviteCode', {})
}

export const getArticleListApi = p => {
  return post('/article/getArticleList', p)
}

export const getCategoryApi = p => {
  return post('/article/category', p)
}

export const saveArticleApi = p => {
  return post('/article/save', p)
}

export const articleDetailApi = p => {
  return post('/article/detail', p)
}

export const sendCommentApi = p => {
  return post('/article/sendComment', p)
}

export const commentListApi = p => {
  return post('/article/commentList', p)
}

export const doLikeApi = p => {
  return post('/article/likeComment', p)
}

export const articleLikeApi = p => {
  return post('/article/likeArticle', p)
}
